package com.ruoyi.aitymyy.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSONObject;

@Component
//路径需要指定“classpath：”，如果是文件路径“file：”
//factory = YamlPropertySourceFactory.class,支持读取yml格式文档
//@PropertySource(value = {"classpath:ait-ymyy.yml"},ignoreResourceNotFound = false, factory = YamlPropertySourceFactory.class)
@ConfigurationProperties(prefix = "ymyy.datasource")
public class OuterDBConfig {
	public static JSONObject ymyy;
	public static JSONObject zjk;
	
	public static JSONObject getYmyy() {
		return ymyy;
	}
	public void setYmyy(JSONObject ymyy) {
		OuterDBConfig.ymyy = ymyy;
	}
	public static JSONObject getZjk() {
		return zjk;
	}
	public void setZjk(JSONObject zjk) {
		OuterDBConfig.zjk = zjk;
	}
	
}
